const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    label = new cc.Label();

    onLoad() {
        
    }

    setData(data: {info: string, tips: string}){
        let {info, tips} = data;
        this.label.string = info;
        console.error("tips", tips);
    }

    close(){
        GDialog.close(this.node);
    }

    des(){
        GDialog.destroy(this.node);
    }

}